package sculove.spring.framework.util;

/**
 * @author sculove
 * @deprecated
 */
public class PageUtil {
	private int currentPage;
	private int recordCntPerPage;
	private int pageCntPerNavigation;
	private int totalRecord;
	
	public PageUtil(int currentPage, int totalRecord,
			int recordCntPerPage) {
		super();
		this.currentPage = currentPage;
		this.recordCntPerPage = recordCntPerPage;
		//this.pageCntPerNavigation = pageCntPerNavigation;
		this.totalRecord = totalRecord;
	}
	
	public int getStartRecord() {
		return ( (currentPage-1) * recordCntPerPage );
	}
	
	public int getEndRecord() {
		return ( currentPage * recordCntPerPage);
	}
	
	public int getCurrentPage() {
		return this.currentPage;
	}
	
	public int getTotalRecord() {
		return this.totalRecord;
	}
}
